<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
if(session.getAttribute("account") == null){
	response.sendRedirect("index.jsp");
}
%>
<!DOCTYPE html> 
<html><!-- InstanceBegin template="/Templates/pageCreate.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>个人信息管理系统</title>

<link href="jquery-mobile/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css" />
<script src="jquery-mobile/jquery-1.6.min.js"></script>
<script src="jquery-mobile/jquery.mobile-1.0.min.js"></script>
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript">
$('#savebutton').live('tap',function(){
		$('#noteCreateForm').submit();
	});
</script>
<!-- InstanceEndEditable -->
</head> 
<body> 

<div data-role="page" >
	<div data-role="header">
	
	<!-- InstanceBeginEditable name="header" -->
		<h1>编辑联系人</h1>
        <!-- InstanceEndEditable -->
        <a href="logoff" data-role="button"  class="ui-btn-right">
    注销
    </a>
        <div data-role="navbar">
        	<ul>
            <li><a href="dayAtAGlanceAction" id="main">一日行程</a></li>
            <li><a href="noteList" id="notes">便签</a></li>
            <li><a href="taskList" id="tasks">任务</a></li>
            <li><a href="contactList" id="contacts">联系</a></li>
            <li><a href="appointmentList" id="appointments">约会</a></li>
            </ul>
        </div>
	</div>
	<!-- InstanceBeginEditable name="content" -->
	<div data-role="content">	
           <form id="contactCreateForm" method="post" action="contactUpdate">
	 <div id="contactEditform">
                  <p id="name"><span>　　姓名：</span>
                      <input id="name" type="text" name="contact.name" value="<s:property value="contact.name"/>"/>
                  </p>
                  <p id="homephone"><span>家庭电话：</span>
                  <input id="homephone" type="text" name="contact.homePhone"  value="<s:property value="contact.homePhone"/>"/>
                  </p>
                  <p id="workphone"><span>工作电话：</span>
                  <input id="workphone" type="text" name="contact.workPhone"  value="<s:property value="contact.workPhone"/>"/>
                  </p>
                   <p id="QQ"><span>　　扣扣：</span>
                  <input id="QQ" type="text" name="contact.QQ"  value="<s:property value="contact.QQ"/>"/>
                  </p>
                  <p id="email"><span>电子邮箱：</span>
                  <input id="email" type="text" name="contact.email"  value="<s:property value="contact.email"/>"/>
                  </p>
                  <p id="address"><span>　　地址：</span>
                  <input id="address" type="text" name="contact.address"  value="<s:property value="contact.address"/>"/>
                  </p>
                   <p id="company"><span>　　公司：</span>
                  <input id="company" type="text" name="contact.company"  value="<s:property value="contact.company"/>"/>
                  </p>
                  <p id="contents"><span>　　内容：</span>
                  <textarea id="contents" name="contact.comments"><s:property value="contact.comments"/></textarea>
                  </p>
                 <button id="savebutton" type="submit" data-icon="plus" data-iconpos="top" value="确认"></button>
                  </div>
                  </form>
        	
	</div>
    <!-- InstanceEndEditable -->
	<!-- InstanceBeginEditable name="footer" -->
	<div data-role="footer"  align="center">
		
	</div>
    <!-- InstanceEndEditable -->
</div>
<!-- InstanceBeginEditable name="endLoad" -->
<script type="text/javascript">

</script>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
